#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int main(){
	int i=0;
	pid_t pid=fork();
	if(pid==-1)return -1;
	if(pid==0){
		i=100;
		printf("child %d\n",i);
	}else{
		printf("parent %d\n",i);
	}
	return 0;
}
